package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import com.frcdi.qms.common.core.domain.entity.ProjectType;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 检验项目对象 md_project
 *
 * @author cell
 * @date 2023-09-12
 */
@ApiModel(value = "检验项目对象")
public class Project extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 检验项目代码 */
    @Excel(name = "检验项目代码")
    private String projectNo;

    /** 检验项目名称 */
    @Excel(name = "检验项目名称")
    private String projectName;

    /** 所属类型 */
    @Excel(name = "所属类型")
    private Long projectType;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 所属类型对象 */
    private ProjectType projectTypeList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProjectNo(String projectNo)
    {
        this.projectNo = projectNo;
    }

    public String getProjectNo()
    {
        return projectNo;
    }
    public void setProjectName(String projectName)
    {
        this.projectName = projectName;
    }

    public String getProjectName()
    {
        return projectName;
    }
    public void setProjectType(Long projectType)
    {
        this.projectType = projectType;
    }

    public Long getProjectType()
    {
        return projectType;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public ProjectType getProjectTypeList() {
        return projectTypeList;
    }

    public void setProjectTypeList(ProjectType projectTypeList) {
        this.projectTypeList = projectTypeList;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectNo", getProjectNo())
            .append("projectName", getProjectName())
            .append("projectType", getProjectType())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
